<html>

<head>
  <title></title>

</head>
  <style>
    * {
      padding: 0;
      border: 0;
      margin: 0;
    }

    .ml_bg {
      background: url(../resources/01.png) no-repeat top 3.45% center;
      background-size: 100% 294%;
      /* background-position: -10px -45px; */
      height: 100vh;
    }

    .ml_modal {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 2;
      display: none;
    }

    .ml_modal_content {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 500px;
      height: 400px;
      display: none;
    }

    .ml_setup_1 {
      background: url(../resources/01.png) no-repeat top 46% left 9%;
      background-size: 227% 495%;
    }

    .ml_setup_2 {
      background: url(../resources/01.png) no-repeat top 46% left 91%;
      background-size: 227% 495%;
    }

    .ml_modal_content1 {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      background-color: #fff;
      width: 500px;
      height: 450px;
      display: none;
    }

    .ml_setup_3 {
      background: url(../resources/01.png) no-repeat top 74% left 9%;
      background-size: 227% 434%;
    }

    .ml_modal_content .ml_close {
      position: absolute;
      right: 14px;
      top: 11px;
      width: 34px;
      height: 36px;
      cursor: pointer;
    }

    .ml_modal_content1 .ml_close {
      position: absolute;
      right: 14px;
      top: 9px;
      width: 40px;
      height: 40px;
      cursor: pointer;
    }

    .ml_button {
      position: absolute;
      left: 58px;
      top: 80px;
      width: 108px;
      height: 34px;
      cursor: pointer;
    }

    .ml_button1 {
      position: absolute;
      left: 196px;
      top: 80px;
      width: 108px;
      height: 34px;
      cursor: pointer;
    }

    .ml_button2 {
      position: absolute;
      left: 334px;
      top: 80px;
      width: 108px;
      height: 34px;
      cursor: pointer;
    }

    .ml_tap {
      position: fixed;
      left: 24%;
      top: 0.5%;
      width: 5.5%;
      height: 3%;
      cursor: pointer;
    }


    .ml_message {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 2;
      display: none;
    }

    .ml_message_content {
      padding: 10px 20px;
      border-radius: 10px;
      background-color: #fff;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  </style>
<body>
  <div class="ml_bg">
    <div class="ml_tap" onclick="tap()"></div>
  </div>

  <div class="ml_modal" id="mlModal">
    <div class="ml_modal_content ml_setup_1" id="mlContent">
      <div class="ml_close" onclick="onClose()"></div>
      <div class="ml_button" onclick="onSetup(1)"></div>
      <div class="ml_button1" onclick="onSetup(2)"></div>
      <div class="ml_button2" onclick="onSetup(3)"></div>
    </div>
    <div class="ml_modal_content ml_setup_2" id="mlContent1">
      <div class="ml_close" onclick="onClose()"></div>
      <div class="ml_button" onclick="onSetup(1)"></div>
      <div class="ml_button1" onclick="onSetup(2)"></div>
      <div class="ml_button2" onclick="onSetup(3)"></div>
    </div>
    <div class="ml_modal_content1 ml_setup_3" id="mlContent2">
      <div class="ml_close" onclick="onClose()"></div>
      <div class="ml_button" onclick="onSetup(1)"></div>
      <div class="ml_button1" onclick="onSetup(2)"></div>
      <div class="ml_button2" onclick="onSetup(3)"></div>
    </div>
  </div>

  <div class="ml_message">
    <div class="ml_message_content"></div>
  </div>
  <script>
    function tap() {
      document.getElementById("mlModal").style.display = "block";
      document.getElementById("mlContent").style.display = "block";
    }

    function onClose() {
      document.getElementById("mlModal").style.display = "none";
      document.getElementById("mlContent").style.display = "none";
      document.getElementById("mlContent1").style.display = "none";
      document.getElementById("mlContent2").style.display = "none";
    }

    function onSetup(e) {
      document.getElementById("mlContent").style.display = "none";
      document.getElementById("mlContent1").style.display = "none";
      document.getElementById("mlContent2").style.display = "none";
      let result = ""
      switch (e) {
        case 1:
          document.getElementById("mlContent").style.display = "block";
          result = "指令发送：DDC102024E200000"
          break;
        case 2:
          document.getElementById("mlContent1").style.display = "block";
          result = "指令发送：DDC1056785200000"
          break;
        case 3:
          document.getElementById("mlContent2").style.display = "block";
          result = "指令发送：DDC3214568200000"
          break;
      }
      showMessage(result);
    }

    function showMessage(e) {
      document.getElementsByClassName("ml_message_content")[0].innerHTML = e;
      document.getElementsByClassName("ml_message")[0].style.display = "block";
      setTimeout(() => {
        document.getElementsByClassName("ml_message")[0].style.display = "none";
      }, 1000);
    }
  </script>
</body>

</html>